package com.tt.fashionWebSite.service;

import com.tt.fashionWebSite.dto.*;

import java.util.List;

public interface Ad_DealService {
    public int adminDeal(KhuyenMaiDto dealDto);
    public List<KhuyenMaiDto> getAllDeal();
    public List<ChiTietKhuyenMaiDto> getAllDealDetail();
    public KhuyenMaiDto getDealInfoEdit(KhuyenMaiDto dealDto);
    public KhuyenMaiDto registerDealEdit(KhuyenMaiDto dealDto);
    public List<ThongTinThanhVienDto> getAllMemberShowInDeal();
    public List<ThongTinThanhVienDto> getAllMemberShowInDealCommon();

    public ChiTietKhuyenMaiDto getDealDetailInfoEdit(ChiTietKhuyenMaiDto dealdetailDto);
    public List<ChiTietSanPhamDto> getAllProductDetailCodeInDeal();
    public List<ChiTietSanPhamDto> getAllProductDetailShowInDetail();
    public List<KhuyenMaiDto> getAllDealDetailShowInDetail();
    public ChiTietKhuyenMaiDto registerDealDetailEdit(ChiTietKhuyenMaiDto dealdetailDto);

    public ChiTietKhuyenMaiDto getDataDetailOfDealCommon(String dealId);

    public int insertProductDetailForDeal(List<ChiTietSanPhamDto> dealDto, String maKhuyenMai, Float percent);

}
